package com.example.food_contract_system.controller;

import com.example.food_contract_system.service.RegionService;
import com.example.food_contract_system.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiHaoyang
 * @date 2023/7/6  11:57
 **/
@RestController
@RequestMapping("region")
public class RegionController {

    @Autowired
    private RegionService regionService;

    @GetMapping("getRegion")
    public R getRegion(){
        R result = regionService.getRegion();
        return result;
    }

}
